home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / pippki / nsIASN1Tree.h next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  111 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIASN1Tree.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIASN1Tree_h__
  6. #define __gen_nsIASN1Tree_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsITreeView_h__
  14. #include "nsITreeView.h"
  15. #endif
  16.  
  17. #ifndef __gen_nsIX509Cert_h__
  18. #include "nsIX509Cert.h"
  19. #endif
  20.  
  21. /* For IDL files that don't want to include root IDL files. */
  22. #ifndef NS_NO_VTABLE
  23. #define NS_NO_VTABLE
  24. #endif
  25.  
  26. /* starting interface:    nsIASN1Tree */
  27. #define NS_IASN1TREE_IID_STR "c727b2f2-1dd1-11b2-95df-f63c15b4cd35"
  28.  
  29. #define NS_IASN1TREE_IID \
  30.   {0xc727b2f2, 0x1dd1, 0x11b2, \
  31.     { 0x95, 0xdf, 0xf6, 0x3c, 0x15, 0xb4, 0xcd, 0x35 }}
  32.  
  33. class NS_NO_VTABLE nsIASN1Tree : public nsITreeView {
  34.  public: 
  35.  
  36.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IASN1TREE_IID)
  37.  
  38.   /* void loadASN1Structure (in nsIASN1Object asn1Object); */
  39.   NS_IMETHOD LoadASN1Structure(nsIASN1Object *asn1Object) = 0;
  40.  
  41.   /* AString getDisplayData (in unsigned long index); */
  42.   NS_IMETHOD GetDisplayData(PRUint32 index, nsAString & _retval) = 0;
  43.  
  44. };
  45.  
  46. /* Use this macro when declaring classes that implement this interface. */
  47. #define NS_DECL_NSIASN1TREE \
  48.   NS_IMETHOD LoadASN1Structure(nsIASN1Object *asn1Object); \
  49.   NS_IMETHOD GetDisplayData(PRUint32 index, nsAString & _retval); 
  50.  
  51. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  52. #define NS_FORWARD_NSIASN1TREE(_to) \
  53.   NS_IMETHOD LoadASN1Structure(nsIASN1Object *asn1Object) { return _to LoadASN1Structure(asn1Object); } \
  54.   NS_IMETHOD GetDisplayData(PRUint32 index, nsAString & _retval) { return _to GetDisplayData(index, _retval); } 
  55.  
  56. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  57. #define NS_FORWARD_SAFE_NSIASN1TREE(_to) \
  58.   NS_IMETHOD LoadASN1Structure(nsIASN1Object *asn1Object) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadASN1Structure(asn1Object); } \
  59.   NS_IMETHOD GetDisplayData(PRUint32 index, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisplayData(index, _retval); } 
  60.  
  61. #if 0
  62. /* Use the code below as a template for the implementation class for this interface. */
  63.  
  64. /* Header file */
  65. class nsASN1Tree : public nsIASN1Tree
  66. {
  67. public:
  68.   NS_DECL_ISUPPORTS
  69.   NS_DECL_NSIASN1TREE
  70.  
  71.   nsASN1Tree();
  72.  
  73. private:
  74.   ~nsASN1Tree();
  75.  
  76. protected:
  77.   /* additional members */
  78. };
  79.  
  80. /* Implementation file */
  81. NS_IMPL_ISUPPORTS1(nsASN1Tree, nsIASN1Tree)
  82.  
  83. nsASN1Tree::nsASN1Tree()
  84. {
  85.   /* member initializers and constructor code */
  86. }
  87.  
  88. nsASN1Tree::~nsASN1Tree()
  89. {
  90.   /* destructor code */
  91. }
  92.  
  93. /* void loadASN1Structure (in nsIASN1Object asn1Object); */
  94. NS_IMETHODIMP nsASN1Tree::LoadASN1Structure(nsIASN1Object *asn1Object)
  95. {
  96.     return NS_ERROR_NOT_IMPLEMENTED;
  97. }
  98.  
  99. /* AString getDisplayData (in unsigned long index); */
  100. NS_IMETHODIMP nsASN1Tree::GetDisplayData(PRUint32 index, nsAString & _retval)
  101. {
  102.     return NS_ERROR_NOT_IMPLEMENTED;
  103. }
  104.  
  105. /* End of implementation class template. */
  106. #endif
  107.  
  108. #define NS_ASN1TREE_CONTRACTID "@mozilla.org/security/nsASN1Tree;1"
  109.  
  110. #endif /* __gen_nsIASN1Tree_h__ */
  111.